#!/bin/sh
 
REPOS="$1"
TXN="$2"
SVNLOOK=/usr/bin/svnlook
 
# get last commit message
COMMIT=`$SVNLOOK log "$REPOS"`
USER=`whoami`
 
# call bot with arguments reposname, revison and commit message in one string
./svn_irc_bot.pl "$USER $REPOS r$TXN: $COMMIT"
 
# all checks passed, so allow the commit
exit 0
